home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Armageddon - Interactive Preview
/
Interactive Preview: Armageddon.iso
/
pc
/
control.dxr
/
Scripts & Behaviors_28_Random Numbers Behavior.ls
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1998-05-19
|
363 b
|
14 lines
property pThisSprite, pStartCast, pCounter
on new me
set pThisSprite to the currentSpriteNum
set the member of sprite pThisSprite to "random numbers 1"
set pStartCast to the memberNum of sprite pThisSprite
set pCounter to 0
end
on exitFrame me
set randomValue to random(3) - 1
set the memberNum of sprite pThisSprite to pStartCast + randomValue
end